package com.wlz.servlet;

import com.wlz.ResponseUtils;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;
import io.netty.handler.codec.http.HttpResponseStatus;

public class BatServlet2 implements HttpServlet {
    @Override
    public FullHttpResponse get(FullHttpRequest request) {
        String context = "BatServlet two get:" + ResponseUtils.getResult();
        ;
        return send(context, HttpResponseStatus.OK);
    }

    @Override
    public FullHttpResponse post(FullHttpRequest request) {
        String context = "BatServlet two post:" + ResponseUtils.getResult();
        ;
        return send(context, HttpResponseStatus.OK);
    }
}
